package com.deuwise.system.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;

/**
 * 图层字段配置实体
 *@author hezhenhao
 *@date 2020-05-27 13:26:17
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("SYS_LAYER_FIELD")
public class SysLayerField extends Model<SysLayerField>  implements Serializable{
    /**主键标识*/
    @ApiModelProperty("主键标识")
    @TableField("id")
    private String id;

    /**图层ID*/
    @ApiModelProperty("图层弹窗标题ID")
    @TableField("title_id")
    private String titleId;

    /**字段*/
    @ApiModelProperty("字段")
    @TableField("field")
    private String field;

    /**显示名(别名)*/
    @ApiModelProperty("显示名(别名)")
    @TableField("alias")
    private String alias;

    /**是否只读,0:否,1:是*/
    @ApiModelProperty("是否只读,0:否,1:是")
    @TableField("readonlys")
    private Integer readonlys;

    /**是否显示,0:否,1:是*/
    @ApiModelProperty("是否显示,0:否,1:是")
    @TableField("displays")
    private Integer displays;

    /**字段类型*/
    @ApiModelProperty("字段类型")
    @TableField("field_type")
    private String fieldType;

    /**配置类型*/
    @ApiModelProperty("配置类型(number/text)等")
    @TableField("config_type")
    private String configType;

    /**排序*/
    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    /**可选项列表*/
    @ApiModelProperty("可选项列表")
    @TableField(exist = false)
    private List<SysLayerFieldOptional> fieldOptionalList;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}